package com.text.day1_2;

import java.util.Scanner;

public class ifDemo {
    public static void main(String[] args) {
//        char sex = '男';

//        if (sex == '女'){
//            System.out.println("放假");
//        } else {
//            System.out.println("不能放假");
//        }
        String se = "";      //引用类型

        Scanner scanner = new Scanner(System.in);
        se = scanner.next();         //nextint 是获取整数
        if (se.equals("女")){             //用equals比较  ，每个对象都有这个方法，比较2个对象内容是否相同
            System.out.println("放假");
            System.out.println("放假");
        } else {
            System.out.println("不能放假");
        }


        int cj;
        Scanner chenji = new Scanner(System.in);
        cj = chenji.nextInt();
        if (cj > 90){
            System.out.println("豪华作业");
        }

        Scanner age = new Scanner(System.in);
        int ag = age.nextInt();
        if(ag>65)
            System.out.println("有养老金");

        Scanner height = new Scanner(System.in);
        Scanner weight = new Scanner(System.in);     //实例化
//        double ht = height.nextDouble();
//        double wt = weight.nextDouble();                //这2个也可以都用一个方法

        double ht = height.nextDouble();
        double wt = height.nextDouble();        // git clone
        if(ht > 180 && wt < 180)
            System.out.println("模特");

    }
}
